package com.jgjc.service.serviceImpl;

import com.jgjc.dao.FramingInfoDao;
import com.jgjc.service.FramingInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class FramingInfoServiceImpl implements FramingInfoService {

    @Resource
    private FramingInfoDao framingInfoDao;

    @Override
    public List<Map<String, Object>> getSideTypeList() {
        return framingInfoDao.getSideTypeList();
    }

    @Override
    public List<Map<String, Object>> getAccessLinearList() {
        return framingInfoDao.getAccessLinearList();
    }

    @Override
    public List<Map<String, Object>> getListByBridgeId(int bridgeId) {
        return framingInfoDao.getListByBridgeId(bridgeId);
    }

    @Override
    public int add(Map<String, Object> map) {
        return framingInfoDao.add(map);
    }

    @Override
    public int edit(Map<String, Object> map) {
        return framingInfoDao.edit(map);
    }

    @Override
    public int delete(int id) {
        return framingInfoDao.delete(id);
    }
}
